package com.testmanager.testmananger.shuiyou.strCompare.domain;

import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Entity
@Data
@Accessors(chain = true)
@Table(name = "sy_compareresult")
public class SyCompareResultEntity extends AbstractAuditingEntity implements Serializable {
    private static final long serialVersionUID = 4164654011994959680L;


//    id
//            compareTaskid
//    isSuccess
//            result



    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    @Column(name = "comparetaskid")
    private long compareTaskid;
    @Column(name = "issuccess")
    private int isSuccess;
    @Column(name = "diffcount")
    private long  diffCount;
    @Column(name = "srctotal")
    private long srcTotal;
    @Column(name = "desttotal")
    private long destTotal;

    @Column(name="srcsql",length = 1024)
    private String srcSql;
    @Column(name="destsql",length = 1024)
    private String destSql;

    @Column(name="comment")
    private String comment;

    @Column(name = "executetime")
    private LocalDateTime executeTime;
}
